package com.kvest.sherlocktest;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import com.actionbarsherlock.app.SherlockActivity;
import com.actionbarsherlock.view.Menu;

/**
 * Created with IntelliJ IDEA.
 * User: r.belokon
 * Date: 15.04.13
 * Time: 12:27
 * To change this template use File | Settings | File Templates.
 */
public class CustomActionBarActivity extends SherlockActivity {
    @Override
    public void onCreate(Bundle savedState) {
        super.onCreate(savedState);

        TextView tv = new TextView(this);
        tv.setText("This is CustomActionBarActivity");
        setContentView(tv);

        getSupportActionBar().setCustomView(R.layout.custom_action_bar);
        getSupportActionBar().setDisplayOptions(com.actionbarsherlock.app.ActionBar.DISPLAY_SHOW_CUSTOM);
    }

    public void onClick(View view) {
        Toast.makeText(this, "onClick", Toast.LENGTH_SHORT).show();
    }
}
